package com.algo.word;

public class Main {

	public static void main(String[] args) {
		
		//if 2 arguments, first argument is input files splitting with ','
		//second argument is output file
		//output 7 columns split with ',' , like below:
		//word, term frequency, left neighbor number, right neighbor number, left neighbor entropy, right neighbor entropy, mutual information
		
		if(args.length == 2)
			NagaoAlgorithm.applyNagao(args[0].split(","), args[1]);
		
		//if 3 arguments, third argument is the NGram parameter N
		else if(args.length == 3)
			NagaoAlgorithm.applyNagao(args[0].split(","), args[1], Integer.parseInt(args[2]));
		
		
	}

}